package com.kgc.sbt.mapper;

import com.kgc.sbt.domain.Track;
import com.kgc.sbt.domain.TrackExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TrackMapper {
    long countByExample(TrackExample example);

    int deleteByExample(TrackExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Track record);

    int insertSelective(Track record);

    List<Track> selectByExample(TrackExample example);

    Track selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Track record, @Param("example") TrackExample example);

    int updateByExample(@Param("record") Track record, @Param("example") TrackExample example);

    int updateByPrimaryKeySelective(Track record);

    int updateByPrimaryKey(Track record);

    int selectTrackByUIdAndGoodsId(Integer userId, Integer goodsId);

    int updateLookTime(Integer userId, Integer goodsId, Date date);

    int deleteTrackByUIdAndGoodsId(Integer userId, Integer goodsId);

    List<Track> selectById(Integer userId);
}